package cate.game.role.history;

import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass(value = "历史记录的联合主键")
public class HistoryKey{

    @NoteField(value = "事件类型")
    public int event;

    @NoteField(value = "参数")
    public int param;

    public HistoryKey() {}

    public HistoryKey(int event, int param) {
        this.event = event;
        this.param = param;
    }

    public boolean eq(int event, int param) {
        return this.event == event && this.param == param;
    }

    @Override
    public String toString() {
        return "HistoryKey{" +
                "event=" + event +
                ", param=" + param +
                '}';
    }
}
